<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<ui:repeat value="#{TreeBean.listProperties}" varStatus="status"
		var="properties" rendered="#{TreeBean.listProperties.size() >= 1}">
		<p:panelGrid>
			<p:row>
				<p:column colspan="9">
					<h:outputLabel for="#{properties.name}" value="#{properties.label}" />
				</p:column>
				<p:column colspan="9">
					<h:inputText value="#{TreeBean.props[status.index]}"
						size="#{properties.size}"
						rendered="#{properties.typeField.id == 1}" />
					<p:inputMask mask="9999999999999999999"
						rendered="#{properties.typeField.id == 2}"
						value="#{TreeBean.props[status.index]}" />
					<p:inputTextarea rows="5" cols="30" maxlength="#{properties.size}"
						autoResize="false" rendered="#{properties.typeField.id == 3}"
						value="#{TreeBean.props[status.index]}" />
					<p:inputMask mask="#{properties.mask}"
						rendered="#{properties.typeField.id == 7}"
						value="#{TreeBean.props[status.index]}" />
					<p:password size="#{properties.size}"
						rendered="#{properties.typeField.id == 9}"
						value="#{TreeBean.props[status.index]}" />
					<h:panelGroup layout="block" styleClass="clear" />
				</p:column>
			</p:row>
		</p:panelGrid>
	</ui:repeat>
	<h:outputLabel value="Seleccionar un elemento"
		rendered="#{TreeBean.listProperties.size() == 0}" />
	<f:facet name="footer">
		<p:commandButton value="Guardar" icon="save"
			actionListener="#{TreeBean.saveProperties}"
			update=":frmMenu:listTree :formTree :frmProperties"
			rendered="#{TreeBean.listProperties.size() >= 1}" />
		<p:commandButton value="Cancelar"
			oncomplete="PropertiesDialog.hide();" icon="cancel"
			actionListener="#{TreeBean.cancelProperties}"
			update=":frmMenu:listTree :formTree :frmProperties" />
	</f:facet>
</ui:composition>